package com.hex.ds.hdrs.center.vo;

import com.hex.ds.hdrs.common.base.BaseReq;
import com.hex.ds.hdrs.period.task.dto.TaskInfo;
import lombok.Data;

/**
 * @author zgc
 * @date 2021-03-01
 * @des
 */
@Data
public class CronTaskReq extends BaseReq {

	private TaskInfo taskInfo;

	public CronTaskReq(TaskInfo taskInfo){
		this.taskInfo = taskInfo;
	}

	public CronTaskReq(){
	}

	/**
	 * 获取shell执行结果状态
	 * @return
	 */
	public String getResStatus(){
		return taskInfo.getResultTaskStatus();
	}

	public String getTaskCode(){
		return taskInfo.getTaskCode();
	}

	public String getJobCode(){
		return taskInfo.getJobCode();
	}

	public String getErrOutput(){
		return taskInfo.getErrOutput();
	}

	public String getBizDate(){
		return taskInfo.getBizDate();
	}
}
